﻿<%@ Page Language="vb" MaintainScrollPositionOnPostback="true" AutoEventWireup="false" CodeBehind="SearchCustomer.aspx.vb" Inherits="WinterPark.SearchCustomer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 74%;
        }
        .auto-style2 {
            width: 156px;
            height: 50px;
        }
        .auto-style3 {
            width: 156px;
            height: 51px;
        }
        .auto-style4 {
            height: 51px;
            width: 495px;
        }
        .auto-style5 {
            font-size: large;
            font-weight: bold;
        }
        .auto-style6 {
            width: 495px;
            height: 50px;
        }
        .auto-style7 {
            width: 156px;
            height: 52px;
        }
        .auto-style8 {
            height: 52px;
            width: 495px;
        }
    </style>
</head>
<body style="height: 170px">
    <form id="form1" runat="server">
    <div class="auto-style5">
    
        Search:</div>
        <table class="auto-style1">
            <tr>
                <td class="auto-style7">By Name:</td>
                <td class="auto-style8">
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="Surname" DataValueField="Surname" Height="25px" Width="311px">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CIS441WinterParkWebConnectionString1 %>" SelectCommand="SELECT [Surname], [FirstName] FROM [CustomerTable] ORDER BY [Surname]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="auto-style2">By Phone Numer:</td>
                <td class="auto-style6">
                    <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2" DataTextField="Phone" DataValueField="Phone" Height="25px" Width="311px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CIS441WinterParkWebConnectionString1 %>" SelectCommand="SELECT [Phone] FROM [CustomerTable]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="auto-style3">By ID:</td>
                <td class="auto-style4">
                    <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource3" DataTextField="CustomerId" DataValueField="CustomerId" Height="25px" Width="311px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CIS441WinterParkWebConnectionString1 %>" SelectCommand="SELECT [CustomerId] FROM [CustomerTable]"></asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
